#安装必要组件
yum update
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install -y ntfs-3g net-tools lm_sensors exfat-utils fuse-exfat
#挂载磁盘
mkdir /media/文件资料
mkdir /media/视频媒体
mkdir /media/归档存储
chmod 0777 /media/文件资料
chmod 0777 /media/视频媒体
chmod 0777 /media/归档存储
mount /dev/disk/by-label/临时存储 /media/视频媒体
mount /dev/disk/by-label/文件资料 /media/文件资料
mount /dev/disk/by-label/资料归档 /media/归档存储
#设置阿里云ipv6解析
mkdir /opt/aliddns
cd /opt/aliddns
wget https://gitee.com/lhzgl6587/mycentos/raw/master/v6.sh
chmod 0777 v6.sh
./v6.sh
#设置开机自启脚本
cd /etc/init.d
wget https://gitee.com/lhzgl6587/mycentos/raw/master/autostart.sh
chmod 0755 autostart.sh
chkconfig --add autostart.sh
chkconfig autostart.sh on
#安装airia2
mv /root/mycentos/aria2.tar.bz2 /usr/local
cd /root/mycentos
chmod 0777 /root/mycentos/aria2.sh
./aria2.sh
rm -rf /root/mycentos
#安装Appnode及网站搭建
INSTALL_AGENT=1 INSTALL_APPS=sitemgr INIT_SWAPFILE=1 INSTALL_PKGS='nginx-mainline,php73,pureftpd,mysql57' bash -c "$(curl -sS http://dl.appnode.com/install.sh)"